export default ({ request }) => ({

  userLogin(data = {}) {
    return request({
      url: 'sys/login',
      method: 'post',
      data,
      auth: false,
    })
  },
  
  getUserProjects(data = {}) {
    return request({
      url: 'sys/user/projects',
      method: 'post',
      data,
    })
  },
  
  getMenuList(params = {}) {
    return request({
      url: 'sys/menu/nav',
      params
    })
  }
})
